
  <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list"style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
      <label class="layui-form-label">商品名称</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <input type="text" name="pname" value="{{ d.params.title || '' }}" lay-verify="required" placeholder="请输入商品名称" autocomplete="off" class="layui-input">
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">商品单价</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <input type="text" name="unitPrice" value="{{ d.params.author || '' }}" lay-verify="required" placeholder="请输入商品单价" autocomplete="off" class="layui-input">
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">商品图片</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <input type="text" name="url" value="{{ d.params.author || '' }}" lay-verify="required" placeholder="请输入商品图片" autocomplete="off" class="layui-input">
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">商品描述</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <textarea name="details" lay-verify="required" style="width: 400px; height: 150px;" autocomplete="off" class="layui-textarea">
            {{ d.params.content || '' }}
          </textarea>
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">商品库存</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <textarea name="stock" lay-verify="required" style="width: 400px; height: 150px;" autocomplete="off" class="layui-textarea">
            {{ d.params.content || '' }}
          </textarea>
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">是否上架</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <select name="isPutOnSale" lay-verify="required">
            <option value="">请选择标签</option>
            <option value="是" {{ d.params.label === '是' ? 'selected' : '' }}>是</option>
            <option value="否" {{ d.params.label === '否' ? 'selected' : '' }}>否</option>
            
          </select>
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">商品状态</label>
      <div class="layui-input-inline">
        <input type="checkbox" lay-verify="required" lay-filter="status" name="state" lay-skin="switch" lay-text="已发布|待修改">
      </div>
    </div>
    
    <div class="layui-form-item">
      <label class="layui-form-label">所属分类</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <select name="categoryId" lay-verify="required">
            <option value="">请选择标签</option>
            <option value="奶粉" {{ d.params.label === '奶粉' ? 'selected' : '' }}>奶粉</option>
            <option value="气球" {{ d.params.label === '气球' ? 'selected' : '' }}>气球</option>
            
          </select>
        </script>
      </div>
    </div>
     <div class="layui-form-item">
      <label class="layui-form-label">今日必抢</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <select name="isToday" lay-verify="required">
            <option value="">请选择标签</option>
            <option value="是" {{ d.params.label === '是' ? 'selected' : '' }}>是</option>
            <option value="否" {{ d.params.label === '否' ? 'selected' : '' }}>否</option>
            
          </select>
        </script>
      </div>
    </div>
    <script type="text/html" template>
      <input type="hidden" name="id" value="{{ d.params.id || '' }}">
    </script>
    <div class="layui-form-item">
      <label class="layui-form-label"></label>
      <div class="layui-input-inline">
        <input type="button" lay-submit lay-filter="layuiadmin-app-form-submit" value="确认" class="layui-btn">
      </div>
    </div>
  </div>
  
  
  
